package com.ts.conch.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ts.conch.entity.TsMenu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItsMenuDao extends BaseMapper<TsMenu> {

    @Select("SELECT id,parent_id,create_time,title,'level',sort,name,icon,hidden,path,component,not_cache FROM LR_MENU")
    List<TsMenu> queryAllMenu();

    int deleteByPrimaryKey(Long id);

    int insertSelective(TsMenu record);

    TsMenu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TsMenu record);

    int updateByPrimaryKey(TsMenu record);

}